package com.lanyou.esb.cook.proxy.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.transaction.PlatformTransactionManager;

import com.lanyou.esb.cook.proxy.dao.Dao;
import com.lanyou.esb.cook.proxy.exception.PersistentDataException;

public abstract class BaseDao<T> extends JdbcDaoSupport implements Dao<T> {
	private PlatformTransactionManager transactionManager;

	@Override
	public int save(T target) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int saveAll(List<T> list) throws PersistentDataException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(T target) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public T findById(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findById(List<String> ids) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T findByCode(String code) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T find(T garget) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T find(Map<String, Object> fields) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int update(List<T> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	public PlatformTransactionManager getTransactionManager() {
		return transactionManager;
	}

	public void setTransactionManager(PlatformTransactionManager transactionManager) {
		this.transactionManager = transactionManager;
	}

}
